import {bannerlist} from "../../../request/api"
const state = {
    chartsList: []
}
const getters = {
    getcharts(state) {
        return state.chartsList
    }
}
const mutations = {
    REQ_GETCHARTS(state, payload) {
        return state.chartsList = payload
    }
}
const actions = {
    getChartsList({ commit }) {
        bannerlist().then(res => {
            commit('REQ_GETCHARTS', res.list)
        })
    }
}

export default {
    state, getters, mutations, actions,
    namespaced: true
}